import { defineStore } from 'pinia'

export const useCountStore = defineStore('count', () => {
  const count = ref(0)
  const increment = () => count.value++
  const dobule = computed(() => count.value * 2)
  return { count, increment, dobule }
})
